package com.smile.cn;

import java.util.ArrayList;
import java.util.List;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String username = "spiderman1517650@163.com";
		String password = "15176501024";
		try {
			//int amount = EMailUtil.getAllEMailCount(username, password);
			List<String> receivers=new ArrayList<String>();
			receivers.add(username);
			List<String> ccs=new ArrayList<String>();
			//ccs.add("spiderman1517650@126.com");
			List<String> bccs=new ArrayList<String>();
			//bccs.add("spiderman1517650@yeah.net");
			List<String> attachs=new ArrayList<String>();
			attachs.add("D:/image/test.txt");
			EMailUtil.sendEmail(username, password, receivers, ccs, bccs, "java mail test", "test javamail",attachs,null);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
